import java.util.Scanner;
public class ProjectArray {

	
	public static int size,sum = 0,average = 0;
	public static int[] array = new int[size];
	public static double sums = 0;
	public static void main(String[]arg){
		Scanner keyboard = new Scanner(System.in);
		
		
		//find lowest highest average standard deviation 
		System.out.println("Give amount of numbers:");
		size = keyboard.nextInt();
		

		for(int count=0;array.length>count;count++){
			//int ranNum=3;
		int ranNum	= (int)(Math.random()*100)+1;
		sum=ranNum+sum;
		array[count] = ranNum;
		System.out.println(array[count]);
		
		}
		//System.out.println(sum);
		average=sum/size;
		System.out.println("average: "+average);
		for(int count=0;array.length>count;count++){
			if(array[count]>average){
				System.out.println("Numeber "+(count+1) +": Above average ("+array[count]+")");
			}
			if(array[count]<average){
				System.out.println("Numeber "+(count+1) +": below average("+array[count]+")");
			}
			if(array[count]==average){
				System.out.println("Numeber "+(count+1) +": equal to the average("+array[count]+")");
			}
			//
		}
		standardDeviation();
	}
	private static void standardDeviation(){
		for(int count=0;array.length>count;count++){
			double num1 = array[count]-average;
			double num2 = num1*num1;
			sums=sums+num2;
		}
		double sd=sums/size;
		System.out.println("Standard Deviation: "+Math.sqrt(sd));
		
	}
	
}
